class animal:
    def __init__(self, name):
        self._name = name

class cow(animal):
    def __init__(self, name):
        super().__init__(name)

    def call(self):
        print(self._name + " says muu")

class sheep(animal):
    def __init__(self, name):
        super().__init__(name)

    def call(self):
        print(self._name + " says mee")

ani = input("请输入动物种类")
name = input("请输入动物名字")
n = eval(ani)(name)
n.call()
